import time
import random

def test3():
    x = int(input())
    y = random.randint(1, 100)
    print(y)
    print(x - y)
if __name__ == "__main__":
    test3()